GitHub 您所在的位置:网站首页 grpc python 流 GitHub

GitHub

2023-04-23 03:59| 来源: 网络整理| 查看: 265

StoryForge

StoryForge is a fictional text-generation project that uses a custom-made GRU architecture to generate fictional stories. The project has two main components: a Python backend server and a Rust server. The Python backend server uses a manually-curated dataset of fictional stories to generate text, while the Rust server displays the generated text to the user.

Backend Architecture

Untitled Diagram drawio-13

Python Backend Server

The Python backend server is responsible for generating the text using the GRU architecture. It uses a dataset of fictional stories to train the model and generate new text. The generated text is returned as a gRPC response to the Rust server. The server is implemented using the gRPC Python library and communicates with the Rust server using the textgen.proto file.

Go to the python-server directory

Rust Server

The Rust server is responsible for displaying the generated text to the user. It acts as a client to the Python backend server and sends requests for generated text. When it receives a response from the Python server, it displays the generated text to the user. The server is implemented using the gRPC Rust library and communicates with the Python server using the textgen.proto file.

Go to the rust-server directory

Installation

To run and install python server, make python-dev

To run and install rust server, make rust-dev



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有